package com.bosssoft.user.permission.center.serve.pojo.dto;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 描述: 角色分配资源时候的请求实体
 * 作者: lljm
 * 日期: 2024/6/11
 */
@ApiModel("角色模块分配资源请求实体类")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleResourceDTO {

    @ApiModelProperty("角色id")
    @JsonSerialize(using= ToStringSerializer.class)
    @NotNull
    private  Long roleId;


    @NotNull
    @ApiModelProperty("资源ids")
    @JsonSerialize(using= ToStringSerializer.class)
    private List<Long> resourceIds;


    @ApiModelProperty("公司id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long companyId;

    @NotNull
    @ApiModelProperty("租户id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long tenantId;

    @ApiModelProperty("组织id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orgId;



}
